package net.lahuobao.finance.entity.charts;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;

/**   
 * @Title: Entity
 * @Description: 资金总账
 * @author zhangdaihao
 * @date 2016-10-26 10:25:28
 * @version V1.0   
 *
 */
@Entity
@Table(name = "finance_account_day_record", schema = "")
@DynamicUpdate(true)
@DynamicInsert(true)
@SuppressWarnings("serial")
public class FinanceAccountDayRecordEntity implements java.io.Serializable {
	/**主键ID*/
	private Integer id;
	/**账户ID*/
	private Integer accountId;
	/**企业名称*/
	private String organizationName;
	/**主账户用户名称*/
	private String userName;
	/**期初余额*/
	private BigDecimal beforeAmount;
	/**收入金额*/
	private BigDecimal plusamount;
	/**支出金额*/
	private BigDecimal payamount;
	/**期末余额*/
	private BigDecimal afterAmount;
	/**创建时间*/
	private Date createTime;
	
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  主键ID
	 */
	
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	@Column(name ="ID",nullable=false,precision=10,scale=0)
	public Integer getId(){
		return this.id;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  主键ID
	 */
	public void setId(Integer id){
		this.id = id;
	}
	/**
	 *方法: 取得java.lang.Integer
	 *@return: java.lang.Integer  账户ID
	 */
	@Column(name ="ACCOUNT_ID",nullable=true,precision=10,scale=0)
	public Integer getAccountId(){
		return this.accountId;
	}

	/**
	 *方法: 设置java.lang.Integer
	 *@param: java.lang.Integer  账户ID
	 */
	public void setAccountId(Integer accountId){
		this.accountId = accountId;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  企业名称
	 */
	@Column(name ="ORGANIZATION_NAME",nullable=true,length=50)
	public String getOrganizationName(){
		return this.organizationName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  企业名称
	 */
	public void setOrganizationName(String organizationName){
		this.organizationName = organizationName;
	}
	/**
	 *方法: 取得java.lang.String
	 *@return: java.lang.String  主账户用户名称
	 */
	@Column(name ="USER_NAME",nullable=true,length=50)
	public String getUserName(){
		return this.userName;
	}

	/**
	 *方法: 设置java.lang.String
	 *@param: java.lang.String  主账户用户名称
	 */
	public void setUserName(String userName){
		this.userName = userName;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  期初余额
	 */
	@Column(name ="BEFORE_AMOUNT",nullable=true,precision=11,scale=2)
	public BigDecimal getBeforeAmount(){
		return this.beforeAmount;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  期初余额
	 */
	public void setBeforeAmount(BigDecimal beforeAmount){
		this.beforeAmount = beforeAmount;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  收入金额
	 */
	@Column(name ="PLUSAMOUNT",nullable=true,precision=11,scale=2)
	public BigDecimal getPlusamount(){
		return this.plusamount;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  收入金额
	 */
	public void setPlusamount(BigDecimal plusamount){
		this.plusamount = plusamount;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  支出金额
	 */
	@Column(name ="PAYAMOUNT",nullable=true,precision=11,scale=2)
	public BigDecimal getPayamount(){
		return this.payamount;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  支出金额
	 */
	public void setPayamount(BigDecimal payamount){
		this.payamount = payamount;
	}
	/**
	 *方法: 取得BigDecimal
	 *@return: BigDecimal  期末余额
	 */
	@Column(name ="AFTER_AMOUNT",nullable=true,precision=11,scale=2)
	public BigDecimal getAfterAmount(){
		return this.afterAmount;
	}

	/**
	 *方法: 设置BigDecimal
	 *@param: BigDecimal  期末余额
	 */
	public void setAfterAmount(BigDecimal afterAmount){
		this.afterAmount = afterAmount;
	}
	/**
	 *方法: 取得java.util.Date
	 *@return: java.util.Date  创建时间
	 */
	@Column(name ="CREATE_TIME",nullable=true)
	public Date getCreateTime(){
		return this.createTime;
	}

	/**
	 *方法: 设置java.util.Date
	 *@param: java.util.Date  创建时间
	 */
	public void setCreateTime(Date createTime){
		this.createTime = createTime;
	}
}
